package com.weme.common.util

import android.telephony.PhoneStateListener
import android.telephony.TelephonyManager
import com.weme.common.manager.SocketConnectManager

/**
 * @author 
 */
class PhoneStateChangeListener : PhoneStateListener() {
    override fun onDataConnectionStateChanged(state: Int) {
        super.onDataConnectionStateChanged(state)
        if (state == TelephonyManager.DATA_CONNECTED) {
            SocketConnectManager.startReConnect()
        }
    }
}